<?php

	if ( isset($_SESSION['logueado']) && $_SESSION['logueado']!=1 ){
	$_SESSION['logueado'] = 0;
	echo "<input class='area' type='textarea' name='user'/>";
	echo "<input class='area' type='password' name='password'/>";
	echo "<a class='forgotpassword' href='singup.php'>Sing Up! | </a>";
	echo "<a class='forgotpassword' href='singup.php'>Forgot your password?</a>";
	echo "<input class='boton' type='submit' value='login'/>";		

	} else {
		
		$_SESSION['logueado'] =1;
		$user = $_POST['user'];
		$password = md5($_POST['password']);
		print "Hello ".$user."<br>";

	}

?>